package com.xbongbong.saas.model.impl;

import com.xbongbong.saas.domain.dao.ExpressAccountDao;
import com.xbongbong.saas.domain.entity.ExpressAccountEntity;
import com.xbongbong.saas.model.ExpressAccountModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

;

/**
 * @author wujian
 */
@Service("expressAccountModel")
public class ExpressAccountModelImpl implements ExpressAccountModel {
    @Resource
    private ExpressAccountDao expressAccountDao;

    @Override
    public Long insert(ExpressAccountEntity entity) {
        return expressAccountDao.insert(entity);
    }

    @Override
    public void insertBatch(List<ExpressAccountEntity> list) {
        expressAccountDao.insertBatch(list);
    }

    @Override
    public List<ExpressAccountEntity> findEntities(Map<String, Object> param) {
        return expressAccountDao.findEntities(param);
    }

    @Override
    public Integer getEntityCount(Map<String, Object> param) {
        return expressAccountDao.getEntitiesCount(param);
    }

    @Override
    public void update(ExpressAccountEntity entity) {
        expressAccountDao.update(entity);
    }

    @Override
    public ExpressAccountEntity getByKey(Long key, String corpid) {
        return expressAccountDao.getByKey(key, corpid);
    }

    /**
     * 批量删除
     * @param list 主键id集合
     * @param corpid
     */
    @Override
    public void updateBatchDel(List<Long> list, String corpid) {
        expressAccountDao.updateBatchDel(list, corpid);
    }


}
